IdeaBlade DevForce 2010 Help Reference
ExceptionAction Property
See Also  Send Feedback
IdeaBlade.Core Assembly > IdeaBlade.Core Namespace > PropertyInterceptorArgs<TInstance,TValue> Class : ExceptionAction Property



The action to perform when an exception is thrown within the property interceptor.

Syntax

Visual Basic (Declaration) 
Public Overrides Property ExceptionAction As Action(Of Exception)
Visual Basic (Usage)Copy Code
Dim instance As PropertyInterceptorArgs(Of TInstance,TValue)
Dim value As Action(Of Exception)
 
instance.ExceptionAction = value
 
value = instance.ExceptionAction
C# 
public override Action<Exception> ExceptionAction {get; set;}
C++/CLI 
public:
property Action<Exception^>^ ExceptionAction {
   Action<Exception^>^ get() override;
   void set (    Action<Exception^>^ value) override;
}

Remarks

You can use this to set a common handler for exceptions on a property or type basis, or even for all properties on all entities. Make sure that the PropertyInterceptorAction which sets the ExceptionAction is executed early within the getter or setter by setting the PropertyInterceptorAction.Order to a low value.

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2013 All Rights Reserved.